package com.culture.config.common.util;

import java.util.UUID;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;

import lombok.experimental.UtilityClass;

@UtilityClass
public class RandomUtil {

	public static String randomCode(int count) {
		return RandomStringUtils.randomAscii(count);
	}

	public static String randomUUID(){
		 UUID uuid = UUID.randomUUID();
		 return StringUtils.replace(uuid.toString(), "-", StringUtils.EMPTY);
	}
}
